/**
 * Copyright (c) Software Institute of PKU
 * All rights reserved. 
 * This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 */
package edu.pku.sei.transformation.editor.internal;

import org.eclipse.core.resources.IProject;

import edu.pku.sei.modeler.project.AbstractModelingProject;
import edu.pku.sei.modeler.project.IProjectFactory;

/**
 * @generated
 * 
 */
public class TransformationEditorProjFactory implements IProjectFactory {

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * edu.pku.sei.modeler.project.AbstractProjectFactory#craeteProject(java
	 * .lang.String)
	 */
	public AbstractModelingProject createProject(IProject proj, String nature) {
		if (TransformationEditorProject.PROJECT_NATURE.equals(nature))
			return new TransformationEditorProject(proj, null);
		else
			return null;
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see edu.pku.sei.modeler.project.AbstractProjectFactory#createAnyhow()
	 */
	public AbstractModelingProject createAnyhow(IProject proj) {
		return new TransformationEditorProject(proj, null);
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see edu.pku.sei.modeler.project.AbstractProjectFactory#getNature()
	 */
	public String getNature() {
		return TransformationEditorProject.PROJECT_NATURE;
	}

}
